To test a web application hosted on multiple web servers, use repository variables and URL format rules to handle URL changes. This helps you successfully run scripts recorded against a different web server.
Modifying the URL with a repository variable
When you use a different web server, the application URL most likely changes. To run scripts against different servers, use the URLROOT repository variable with values for each server address.
For example, you need to test an application on a development server and a test server. You can add values of http://dev.example.com and http://test.example.com to the URLROOT repository variable. After the variable is set up, add it to the script and assign it the value for the server the script is running against.
See About the URLROOT repository variable and Creating repository variables.
Modifying search criteria with URL format rules
By default, QA Wizard Pro uses the URL of a web page as a search criteria. To ensure that windows and controls are located during playback, use URL format rules to search on individual parts of the URL.
For example, you recorded a script on a development server that logs in to a web page. Now, you need to run the same script on a test server. The script fails on the because the application repository was populated with information associated with the development server, not the test server. You can create a URL format rule that searches for only the specific part of the URL that does not change. If you create a URL format rule to search for the login.php file value, QA Wizard Pro skips the server information in the URL and the script runs correctly.
See Creating URL format rules.